#include <ListBoxPeople.h>

Format* ListBoxPeople::pFormat_m = NULL;

ListBoxPeople::ListBoxPeople(People& people,Format& format):people_m(people)
{
	pFormat_m = &format;
}

void ListBoxPeople::display(std::ostream& os)
{
	people_m.formatOutput(os,*pFormat_m);
}

void ListBoxPeople::changeLengthFormat(Format& format)
{
	pFormat_m = &format;
}
